Skip to content

add utils tests#45

Merged
eigmax merged 3 commits intoGOATNetwork:mainfrom
KSlashh:feat/bitvm
Apr 24, 2025
Merged

add utils tests#45
eigmax merged 3 commits intoGOATNetwork:mainfrom
KSlashh:feat/bitvm

Conversation

@KSlashh
Copy link
Collaborator

@KSlashh KSlashh commented Apr 24, 2025

No description provided.

write_tx(&base_dir, IpfsTxName::Take1, graph.take1.tx())?;
write_tx(&base_dir, IpfsTxName::Take2, graph.take2.tx())?;
let cids = client.ipfs.add(&Path::new(&base_dir)).await?;
let _ = fs::remove_dir_all(base_dir);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should return the error when remove fails. just use fs::remove_dir_all(base_dir)?;.

Copy link
Collaborator Author

@KSlashh KSlashh Apr 24, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should return the error when remove fails. just use fs::remove_dir_all(base_dir)?;.

the existence of cached files won't affect subsequent execution, is it necessary to return a failure?

@eigmax eigmax merged commit e7d59bb into GOATNetwork:main Apr 24, 2025
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants